# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-ini
pkgver=1.1.0
pkgrel=0
pkgdesc="Ini-File Handling"
url="https://github.com/c-util/c-ini"
arch="all"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="
	c-list-dev~=3
	c-rbtree-dev~=3
	c-stdaux-dev~=1
	c-utf8-dev~=1
	meson
	"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-ini/archive/v$pkgver/c-ini-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c462765f6b96cc92317481bc2003e18811689f799f737f497aa1e915d4323102aab5d037a8d73f52b2fce141ae5ae6520276b3f7604186acf4a35629606166cd  c-ini-1.1.0.tar.gz
"
